﻿@model GPS.ENTITYS.CrudModelDHV

<script src="~/Scripts/jquery-ui-1.11.4.js"></script>

<script src="~/Scripts/jquery.maskedinput.js"></script>
<script src="~/Scripts/jquery.number.js"></script>




<div class="modal-header fdb-panel-header-10">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h5 class="modal-title" id="myModalLabel">Thông tin chi tiết học viên</h5>
</div>
<div class="modal-body fdb-panel-body-0">
    <div id="tabs">

        @using (Html.BeginForm("Detail", "GPS_BienDongHocVien", FormMethod.Post, new { enctype = "multipart/form-data", id = "form" }))
        {
            @Html.ValidationSummary(true)
            <div id="tabs-1">
                <fieldset class="fs_body">
                    <legend class="head_title">Thông Tin Học Viên</legend>
                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Mã Học Viên
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_MA, new { @class = "form-control", @readonly = "readonly" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Họ và tên:
                        </div>
                        <div class="col-md-4">
                            @{
            string str = Model.HV_HODEM + " " + Model.HV_TEN;
            @Html.Raw(str)
                            }
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label text-left">
                            Đơn vị đào tạo:
                        </div>
                        <div class="col-md-4">
                            @Html.Raw(ViewBag.HV_DVGTVT_MAs)
                        </div>
                        <div class="col-md-2 control-label">
                            Hạng đào tạo:
                        </div>
                        <div class="col-md-4">
                            @Html.Raw(ViewBag.HV_HANGDT_MAs)
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày sinh:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_NGAYSINH, "{0:dd/MM/yyyy}", new { @class = "form-control", @readonly = "readonly" })
                        </div>

                        <div class="col-md-2 control-label">
                            Số CMTDN:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_SOCMT, new { @class = "form-control", @readonly = "readonly" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Ngày Cấp CMT:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_NGAYCAPCMT, "{0:dd/MM/yyyy}", new { @class = "form-control", @readonly = "readonly" })
                        </div>
                        <div class="col-md-2 control-label">
                            Nơi Cấp CMTDN:
                        </div>
                        <div class="col-md-4">
                            @Html.Raw(ViewBag.HV_NOICAPCMTs)
                        </div>
                    </div>
                </fieldset>
                <br />
                <fieldset class="fs_body">
                    <legend class="head_title">Thông Tin Chi Tiết</legend>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Nơi thường trú:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_NOITT, new { @class = "form-control", @readonly = "readonly" })
                        </div>

                        <div class="col-md-2 control-label">
                            Nơi TT/ĐV hành chính:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_NOITT_DVHC_MA, new { @class = "form-control", @id = "HV_NOITT_DVHC_MA", @readonly = "readonly" })
                            <span id="rData" style="width:300px"></span>
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Nơi thường trú ĐVHC:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_NOITT_DVHC_DVQL, new { @class = "form-control", @id = "HV_NOITT_DVHC_DVQL", @readonly = "readonly" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Quốc tịch:
                        </div>
                        <div class="col-md-4">
                            @Html.Raw(ViewBag.HV_QUOCTICH_MAs)
                        </div>

                        <div class="col-md-2 control-label">
                            Giới tính:
                        </div>
                        <div class="col-md-4">
                            @{
            string str1 = Model.HV_GIOITINH == "M" ? "Nam" : "Nữ";
            @Html.Raw(str1)
                            }
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Nơi cư trú:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_NOICT, new { @class = "form-control", @id = "HV_NOICT", @readonly = "readonly" })
                        </div>

                        <div class="col-md-2 control-label">
                            Nơi CT/ĐV hành chính:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_NOICT_DVHC_MA, new { @class = "form-control", @id = "HV_NOICT_DVHC_MA", @readonly = "readonly" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Nơi cứ trú ĐVHC:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_NOICT_DVHC_DVQL, new { @class = "form-control", @id = "HV_NOICT_DVHC_DVQL", @readonly = "readonly" })
                        </div>
                        <div class="col-md-2 control-label">
                            Trạng thái:
                        </div>
                        <div class="col-md-4">
                            @Html.CheckBoxFor(model => model.HV_ACTIVE, new { @class = "checkbox", @readonly = "readonly" })
                        </div>
                    </div>

                    <div class="row margin-top-05">
                        <div class="col-md-2 control-label">
                            Mô Tả:
                        </div>
                        <div class="col-md-4">
                            @Html.DisplayFor(model => model.HV_MOTA, new { @class = "form-control", @rows = 5, @readonly = "readonly" })
                        </div>
                    </div>
                </fieldset>

                <div class="row margin-top-15 action_formdetail" style="padding-left: 30px">
                    <div class="col-md-12">
                        &nbsp;&nbsp;
                        <button class="btn btn-primary btn-sm" type="button" data-dismiss="modal">Hủy bỏ</button>
                    </div>
                </div>
            </div>
        }
    </div>
</div>

<script>
    $("#ddlLSGV_STATUS").change(function () {
        //alert("1");
        var selectedId = $(this).val();
        if (selectedId != null && selectedId != '' && selectedId == '4') {
            $("#divDVGTVT_MOI").attr("style", "display:block;padding-left: 30px");
        }
        else {
            $("#divDVGTVT_MOI").attr("style", "display:none;padding-left: 30px");
        }
    });
</script>
